// PositionEditDlg.cpp : implementation file
//

#include "stdafx.h"
#include "ScreenShots.h"
#include "PositionEditDlg.h"


// PositionEditDlg dialog

IMPLEMENT_DYNAMIC(PositionEditDlg, CDialog)

PositionEditDlg::PositionEditDlg(CWnd* pParent /*=NULL*/, UINT Pos)
	: CDialog(PositionEditDlg::IDD, pParent)
{
	Position = Pos;
}

PositionEditDlg::~PositionEditDlg()
{
}

void PositionEditDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_POSITION_EDIT, Position);
	DDV_MinMaxUInt(pDX, Position, 1, 10);
}


BEGIN_MESSAGE_MAP(PositionEditDlg, CDialog)
	ON_BN_CLICKED(IDOK, &PositionEditDlg::OnBnClickedOk)
END_MESSAGE_MAP()


// PositionEditDlg message handlers

void PositionEditDlg::OnBnClickedOk()
{
	UpdateData(TRUE);
	OnOK();
}
